package com.ruoyi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName message
 */
@TableName(value ="message")
@Data
public class Message implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer mid;

    /**
     * 贷款id
     */
    private Integer lid;

    /**
     * 还款用户id
     */
    private Integer uid;

    /**
     * 还款金额
     */
    private Long money;

    /**
     * 还款是否逾期
     */
    private String overdueyesisno;

    /**
     * 逾期天数
     */
    private Integer numberofdays;

    /**
     * 还款方式
     */
    private String repaymentmethod;

    /**
     * 还款类型
     */
    private String repaymenttype;

    /**
     * 实际还款日期
     */
    private Date practicaltime;

    /**
     * 应该还款日期
     */
    private Date shouldtime;

    /**
     * 还款状态
     */
    private String messagetype;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Message other = (Message) that;
        return (this.getMid() == null ? other.getMid() == null : this.getMid().equals(other.getMid()))
            && (this.getLid() == null ? other.getLid() == null : this.getLid().equals(other.getLid()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getOverdueyesisno() == null ? other.getOverdueyesisno() == null : this.getOverdueyesisno().equals(other.getOverdueyesisno()))
            && (this.getNumberofdays() == null ? other.getNumberofdays() == null : this.getNumberofdays().equals(other.getNumberofdays()))
            && (this.getRepaymentmethod() == null ? other.getRepaymentmethod() == null : this.getRepaymentmethod().equals(other.getRepaymentmethod()))
            && (this.getRepaymenttype() == null ? other.getRepaymenttype() == null : this.getRepaymenttype().equals(other.getRepaymenttype()))
            && (this.getPracticaltime() == null ? other.getPracticaltime() == null : this.getPracticaltime().equals(other.getPracticaltime()))
            && (this.getShouldtime() == null ? other.getShouldtime() == null : this.getShouldtime().equals(other.getShouldtime()))
            && (this.getMessagetype() == null ? other.getMessagetype() == null : this.getMessagetype().equals(other.getMessagetype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMid() == null) ? 0 : getMid().hashCode());
        result = prime * result + ((getLid() == null) ? 0 : getLid().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getOverdueyesisno() == null) ? 0 : getOverdueyesisno().hashCode());
        result = prime * result + ((getNumberofdays() == null) ? 0 : getNumberofdays().hashCode());
        result = prime * result + ((getRepaymentmethod() == null) ? 0 : getRepaymentmethod().hashCode());
        result = prime * result + ((getRepaymenttype() == null) ? 0 : getRepaymenttype().hashCode());
        result = prime * result + ((getPracticaltime() == null) ? 0 : getPracticaltime().hashCode());
        result = prime * result + ((getShouldtime() == null) ? 0 : getShouldtime().hashCode());
        result = prime * result + ((getMessagetype() == null) ? 0 : getMessagetype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mid=").append(mid);
        sb.append(", lid=").append(lid);
        sb.append(", uid=").append(uid);
        sb.append(", money=").append(money);
        sb.append(", overdueyesisno=").append(overdueyesisno);
        sb.append(", numberofdays=").append(numberofdays);
        sb.append(", repaymentmethod=").append(repaymentmethod);
        sb.append(", repaymenttype=").append(repaymenttype);
        sb.append(", practicaltime=").append(practicaltime);
        sb.append(", shouldtime=").append(shouldtime);
        sb.append(", messagetype=").append(messagetype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}